package com.synergy.stockflow.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Schema
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "workshop")
public class Workshop {
    /**
     * 车间ID
     */
    @TableId(value = "workshopc_id", type = IdType.INPUT)
    @Schema(description="车间ID")
    private String workshopcId;

    /**
     * 车间名称
     */
    @TableField(value = "workshop_name")
    @Schema(description="车间名称")
    private String workshopName;

    /**
     * 面积
     */
    @TableField(value = "area")
    @Schema(description="面积")
    private Integer area;

    /**
     * 负责人
     */
    @TableField(value = "person")
    @Schema(description="负责人")
    private String person;

    /**
     * 是否启用（0是1否）
     */
    @TableField(value = "is_enabled")
    @Schema(description="是否启用（0是1否）")
    private Integer isEnabled;

    /**
     * 备注
     */
    @TableField(value = "remark")
    @Schema(description="备注")
    private String remark;

    @TableField(value = "create_time")
    @Schema(description="")
    private Date createTime;

    @TableField(value = "create_by")
    @Schema(description="")
    private String createBy;

    @TableField(value = "update_time")
    @Schema(description="")
    private Date updateTime;

    @TableField(value = "update_by")
    @Schema(description="")
    private String updateBy;
}